<ResourceDictionary
	xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
	xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
	xmlns:uic="clr-namespace:UI.Control">

    <Style x:Key="{x:Type uic:ChildWindowDecoratorKiosk}" TargetType="{x:Type uic:ChildWindowDecoratorKiosk}">
        <Setter Property="Template">
            <Setter.Value>
                <ControlTemplate TargetType="{x:Type uic:ChildWindowDecoratorKiosk}">
                    <Grid x:Name="griMain" RenderTransformOrigin="0.5,0.5">
                        <Grid.RenderTransform>
                            <TransformGroup>
                                <ScaleTransform ScaleX="0.8" ScaleY="0.8"/>
                                <SkewTransform AngleX="0" AngleY="0"/>
                                <RotateTransform Angle="0"/>
                                <TranslateTransform X="0" Y="0"/>
                            </TransformGroup>
                        </Grid.RenderTransform>

                        <!-- Content -->
                        <Border x:Name="root">

                            <Grid x:Name="rootGrid">
                                <Grid.RowDefinitions>
                                    <RowDefinition Height="20"/>
                                    <RowDefinition Height="*" />
                                </Grid.RowDefinitions>
                                
                                <Rectangle Grid.RowSpan="2" Fill="{DynamicResource VOColor13}"/>

                                <!--Rectangle x:Name="borVideo" Grid.RowSpan="2" Fill="{DynamicResource VOColor10}"/-->

                                <!--Path Fill="LightSkyBlue" Stroke="Black">
                                    <Path.Data>
                                        <CombinedGeometry GeometryCombineMode="Union">
                                            <CombinedGeometry.Geometry1>
                                                <RectangleGeometry Rect="0,0,200,200" RadiusX="3" RadiusY="3"/>
                                            </CombinedGeometry.Geometry1>
                                            <CombinedGeometry.Geometry2>
                                                <EllipseGeometry Center="200,250" RadiusX="70" RadiusY="30">
                                                </EllipseGeometry>
                                            </CombinedGeometry.Geometry2>
                                        </CombinedGeometry>
                                    </Path.Data>
                                </Path-->

                                <!-- Content -->
                                <ContentPresenter x:Name="Content" Grid.Row="0" Grid.RowSpan="2"/>

                                <!-- Controls -->
                                <Border x:Name="headerBar" Grid.Row="0">
                                    <Button x:Name="btnClose" Grid.Row="0" Style="{DynamicResource WindowBarButton}" Margin="0,1,3,0" HorizontalAlignment="Right">
                                        <Viewbox>
                                            <Canvas Height="10" Width="10">
                                                <Line Fill="{DynamicResource VOColorIcon}" X2="9" X1="1" Stroke="{DynamicResource VOColor1A}" StrokeThickness="1.5" Y2="9" Y1="1" />
                                                <Line Fill="{DynamicResource VOColorIcon}" X2="1" X1="9" Stroke="{DynamicResource VOColor1A}" StrokeThickness="1.5" Y2="9" Y1="1" />
                                            </Canvas>
                                        </Viewbox>
                                    </Button>
                                </Border>

                            </Grid>

                        </Border>

                        <!-- Grip -->
                        <Grid Name="grip">
                            <Border Name="rectSizeSouthEast" Background="#00FFFFFF"  Cursor="SizeNWSE" Width="16" Height="16" VerticalAlignment="Bottom" HorizontalAlignment="Right">
                                <Canvas Height="16" Width="16">
                                    <Line X1="0" Y1="14" X2="14" Y2="0" Stroke="{DynamicResource VOColor13}" StrokeThickness="1"/>
                                    <Line X1="4" Y1="14" X2="14" Y2="4" Stroke="{DynamicResource VOColor13}" StrokeThickness="1"/>
                                    <Line X1="8" Y1="14" X2="14" Y2="8" Stroke="{DynamicResource VOColor13}" StrokeThickness="1"/>
                                </Canvas>
                            </Border>
                        </Grid>

                    </Grid>
                    <ControlTemplate.Resources>
                        <Storyboard x:Key="ShowChildWindow">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.625,1" KeyTime="00:00:00.3330000" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Duration="00:00:00.0010000" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame KeyTime="00:00:00" Value="{x:Static Visibility.Visible}"/>
                            </ObjectAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="griMain" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleX)">
                                <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.625,1" KeyTime="00:00:00.3330000" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetName="griMain" Storyboard.TargetProperty="(UIElement.RenderTransform).(TransformGroup.Children)[0].(ScaleTransform.ScaleY)">
                                <SplineDoubleKeyFrame KeySpline="0.5,0.5,0.625,1" KeyTime="00:00:00.3330000" Value="1"/>
                            </DoubleAnimationUsingKeyFrames>
                        </Storyboard>
                        <Storyboard x:Key="HideChildWindow">
                            <DoubleAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Opacity)">
                                <SplineDoubleKeyFrame KeyTime="00:00:00.2330000" Value="0"/>
                            </DoubleAnimationUsingKeyFrames>
                            <ObjectAnimationUsingKeyFrames BeginTime="00:00:00" Storyboard.TargetProperty="(UIElement.Visibility)">
                                <DiscreteObjectKeyFrame KeyTime="00:00:00.2330000" Value="{x:Static Visibility.Collapsed}"/>
                            </ObjectAnimationUsingKeyFrames>
                        </Storyboard>
                    </ControlTemplate.Resources>
                </ControlTemplate>

            </Setter.Value>
        </Setter>
    </Style>

</ResourceDictionary>
